// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import "./base.js"
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css' 
import Distpicker from 'v-distpicker'
import { AlertPlugin, ToastPlugin } from 'vux'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import { ConfirmPlugin } from 'vux'
import http from './http/http'
import { BrowserInfo } from "@/utils/utils.js"





Vue.prototype.$http = http;
Vue.prototype.BrowserInfo = BrowserInfo;
Vue.prototype.system = BrowserInfo().isIphone ? 'Iphone' : 'Android';
Vue.prototype.baseURL = "http://www.kbb123.com/";





Vue.use(AlertPlugin)
Vue.use(ToastPlugin)
Vue.use(ElementUI);

Vue.config.productionTip = false
Vue.use(MintUI)

Vue.component('v-distpicker', Distpicker)

/* eslint-disable no-new */

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  render: h => h(App)
})

Vue.use(ConfirmPlugin);